<?php


namespace app\model;


use think\Model;

class Info extends  Model
{

    public function comment(){
        return $this->hasMany(Comment::class,'info_id','id');
    }
    public function userInfo(){
        return $this->hasOne(User::class ,'id' , 'user_id');
    }
}